#include <stdio.h>
#include "algorithm.h"
#include "stack.h"
#include "vector.h"


void print_int(int i)
{
  printf("%i\n", i);
}

int data[] =
{
  0,
  1,
  2,
  3,
  4,
  5,
  6,
  7,
  8,
  9
};

void main()
{
  stack<vector<int>, int> s;

  for(int i = 0; i < 10; ++i)
  {
    s.push(data[i]);
    print_int(s.top());
  }

  printf("\n");

  while(!s.empty())
  {
    print_int(s.top());
    s.pop();
  }
}
